<?php
    include('session.inc');
    require_once('funct.inc');
    if(!GetAdminID($ID)){echo"Nieste korektne prihl�sen� a nemate administra�n� pr�va.";exit;}
    include 'color_style.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>Admin</title>
<?php echo '<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET_.';">'; ?>
<style type="text/css">
    body{
        margin-left:0pt;
        margin-right:0pt;
        margin-top:0pt;
        margin-bottom:0pt;
        height: 1548px;
    }
    table{
        margin-left:0pt;
        margin-right:0pt;
        margin-top:0pt;
        margin-bottom:0pt;

        border-bottom-color: red;
        border-top-color: red;
        border-left-color: red;
        border-right-color: red;
        border-collapse: collapse;
    }
    iframe{
        margin-left:0pt;
        margin-right:0pt;
        margin-top:0pt;
        margin-bottom:0pt;
    }
    form{
        margin-top:0px;
        margin-bottom:0px
    }
    img {margin-top:0pt; margin-bottom:0px;}
</style>
</head>

<?php
print "<body bgcolor=\"".BACKGROUND_COLOR_HEADER."\">";
        //heder frame

    print "
        <iframe src=\"header.php\" name=\"header\" scrolling=\"Auto\"
            marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"
            style=\"width:100%; height:150px; position:absolute;left:0px;top:0px;\">
        </iframe>
    ";

    print "
        <iframe src=\"home_screen.php\" name=\"place\"
            scrolling=\"Auto\" marginwidth=\"0\"
            marginheight=\"0\" frameborder=\"0\"
            style=\"width:100%; height:1400px; position:absolute; left:0px; top:150px;\">
        </iframe>
    ";
/*
        //pracovnny frame
        if(Right_Check(1)){
        print"<iframe src=\"adm_product.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
        }else{
        if(Right_Check(2)){
        print"<iframe src=\"order_management.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
        }else{
        if(Right_Check(3)){
        print"<iframe src=\"chat_management.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
        }else{
        if(Right_Check(4)){
        print"<iframe src=\"users_management.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
        }else{
        if(Right_Check(5)){
        print"<iframe src=\"adm_acount_management.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
        }else{
        print"<iframe src=\"adm_acount.php\" name=\"place\" valign=\"top\"
               scrolling=\"Auto\" width=\"100%\" height=\"1400px\" marginwidth=\"0\"
               marginheight=\"0\" frameborder=\"No\" border=\"0\"
               style=\"position:absolute;left:0px;top:150px;\">
               </iframe>";
                 }}}}}
 */


 
?>
</body>
</html>
